package com.example.yangxu0703.thundermapclient.activity;

import android.app.Activity;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;

import com.example.yangxu0703.thundermapclient.R;

import java.util.ArrayList;

public class DeleteApkActivity extends Activity implements View.OnClickListener {

    private TextView delete_arrow_back, title_name, delete_finish;
    private ListView listView;
    private MyAdapter myAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_delete_apk);

        initView();

    }

    private void initView() {
        delete_arrow_back = findViewById(R.id.delete_arrow_back);
        delete_arrow_back.setOnClickListener(this);
        title_name = findViewById(R.id.title_name);
        delete_finish = findViewById(R.id.delete_finish);
        listView=findViewById(R.id.delete_apk);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.delete_arrow_back:break;

            case R.id.delete_finish:
                //删除图片，发送消息
                break;
        }
    }


    public class MyAdapter extends BaseAdapter{

        private Context context;
        private ArrayList<String> Apkpath;

        public MyAdapter(Context context, ArrayList<String> apkpath) {
            this.context = context;
            Apkpath = apkpath;
        }

        @Override
        public int getCount() {
            return 0;
        }

        @Override
        public Object getItem(int position) {
            return null;
        }

        @Override
        public long getItemId(int position) {
            return 0;
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            return null;
        }

    }

}
